package Thread;

public class ThreadDemo4 {
    public static void main(String[] args) {
        Thread thread=new Thread(){
            @Override
            public void run() {
                System.out.println("hello 1");
            }
        };
        Thread thread11=new Thread(){
            @Override
            public void run() {
                System.out.println("good boy");
            }
        };
        thread.start();
        thread11.start();
        System.out.println("hello 2");

    }
}
